<?php /* Smarty version Smarty-3.1.6, created on 2013-07-11 11:54:19
         compiled from "./templates\planingList.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2734851de4f932825c2-77878671%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b57b42f1e66f1aecade3f8444494d9acc38d48e6' => 
    array (
      0 => './templates\\planingList.tpl',
      1 => 1372387641,
      2 => 'file',
    ),
    '6e223a730afa2eea8d477b94ddbaf46d60057f4f' => 
    array (
      0 => 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\shakti\\templates\\main.tpl',
      1 => 1372686418,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2734851de4f932825c2-77878671',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    's_activId' => 0,
    'selUsermenuArr' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_51de4f93634e9',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51de4f93634e9')) {function content_51de4f93634e9($_smarty_tpl) {?><?php if (!is_callable('smarty_function_html_options')) include 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\shakti\\include\\smarty\\libs\\plugins\\function.html_options.php';
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<head>
<title>Shakti</title>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.autocomplete.js" ></script>

<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="./css/jquery-ui.css" rel="stylesheet" type="text/css"/>
<link href="./css/menu.css" rel="stylesheet" type="text/css" />
<link href="./css/jquery.toastmessage-min.css" type="text/css" rel="stylesheet"/>
<link href="./css/jquery.autocomplete.css" type="text/css" rel="stylesheet" media="all">

<script type="text/javascript">
$(document).ready(function(){
 });
function getProcessData(theId){
  var dataString = "planningId=" + theId;
	$.ajax({
		type: "POST",
		url: "getProcess.php",
		data: dataString,
		dataType: 'json',
		success:function(data)
		{
			$(".pIncomingId").empty();
			$(".pPartyId").empty();
			$(".oldQuantity").empty();
			$(".quantity").empty();
			$(".oldWeight").empty();
			$(".weight").empty();
			$(".process1Id").empty();
			$(".process2Id").empty();
			$(".process3Id").empty();

			$(".temp1").empty();
			$(".soaking1").empty();
			$(".furnace1").fadeOut();
			$(".temp2").empty();
			$(".soaking2").empty();
			$(".furnace2").fadeOut();
			$(".temp3").empty();
			$(".soaking3").empty();
			$(".furnace3").fadeOut();
			
			if(data[0].process1 == 1)
			{
				$(".temp1").append('<input type=text size="8" name="temp1" id="temp1" />');
				$(".soaking1").append('<input type=text size="8" name="soaking1" id="soaking1" />');
				$(".furnace1").fadeIn();
				
        if(data[0].processId2 > 0)
        {
				  $(".temp2").append('<input type=text size="8" name="temp2" id="temp2" AUTOFOCUS />');
				  $(".soaking2").append('<input type=text size="8" name="soaking2" id="soaking2" />');
				  $(".furnace2").fadeIn();
				}
			}
			else
			{
				$(".temp1").append('<input type=text size="8" name="temp1" id="temp1" AUTOFOCUS />');
				$(".soaking1").append('<input type=text size="8" name="soaking1" id="soaking1" />');
				$(".furnace1").fadeIn();
			}
						
			if(data[0].process2 == 1)
			{
				$(".temp2").empty();
				$(".soaking2").empty();
				//$(".furnace2").empty();
				
				$(".temp2").append('<input type=text size="8" name="temp2" id="temp2" />');
				$(".soaking2").append('<input type=text size="8" name="soaking2" id="soaking2" />');
				$(".furnace2").fadeIn();
				
				if(data[0].processId3 > 0)
        {
        	$(".temp3").append('<input type=text size="8" name="temp3" id="temp3" AUTOFOCUS />');
				  $(".soaking3").append('<input type=text size="8" name="soaking3" id="soaking3" />');
				  $(".furnace3").fadeIn();
				}
			}

			
			if(data[0].process3 == 1)
			{
				$(".temp2").empty();
				$(".soaking2").empty();
				//$(".furnace2").empty();
				$(".temp3").empty();
				$(".soaking3").empty();
				//$(".furnace3").empty();

				$(".temp2").append('<input type=text size="8" name="temp2" id="temp2" />');
				$(".soaking2").append('<input type=text size="8" name="soaking2" id="soaking2" />');
				$(".furnace2").fadeIn();

				$(".temp3").append('<input type=text size="8" name="temp3" id="temp3" />');
				$(".soaking3").append('<input type=text size="8" name="soaking3" id="soaking3" />');
				$(".furnace3").fadeIn();
			}            
			
      $(".pIncomingId").append('<input type="hidden" name="pIncomingId" id="pIncomingId" />');
      $(".pPartyId").append('<input type="hidden" name="pPartyId" id="pPartyId" />');
			$(".quantity").append('<input type="hidden" name="oldQuantity" id="oldQuantity" /><input type=text size="8" name="plannedQuantity" id="plannedQuantity" required="required" />');
			$(".weight").append('<input type="hidden" name="oldWeight" id="oldWeight" /><input type=text size="8" name="plannedWeight" id="plannedWeight" required="required" />');
      $(".process1Id").append('<input type="hidden" name="process1Id" id="process1Id" />');
      $(".process2Id").append('<input type="hidden" name="process2Id" id="process2Id" />');
      $(".process3Id").append('<input type="hidden" name="process3Id" id="process3Id" />');
      
			$("#pIncomingId").val(data[0].incomingId);
			$("#pPartyId").val(data[0].partyId);
			$("#oldQuantity").val(data[0].quantity);
			$("#plannedQuantity").val(data[0].quantity);
			$("#oldWeight").val(data[0].weight);
			$("#plannedWeight").val(data[0].weight);
			$("#process1Id").val(data[0].processId1);
			$("#process2Id").val(data[0].processId2);
			$("#process3Id").val(data[0].processId3);


			$("#temp1").val(data[0].temp1);
			$("#soaking1").val(data[0].soaking1);
			$("#furnace1").val(data[0].furnace1);
			
			$("#temp2").val(data[0].temp2);
			$("#soaking2").val(data[0].soaking2);
			$("#furnace2").val(data[0].furnace2);
			
			$("#temp3").val(data[0].temp3);
			$("#soaking3").val(data[0].soaking3);
			$("#furnace3").val(data[0].furnace3);


		  var ajaxString = "planningId=" + theId + "&notOkData=1";
			$.ajax({
				type: "POST",
				url: "getProcess.php",
				data: ajaxString,
				success:function(data)
				{
					$('#notOkSpan').html(data);
				}
			});
			
		}
	});
}
function myFunction()
{
	if(confirm("You Want To Remove This Record")== true)
	{
		return true;
	}
	else
	{
		return false;
	}
}
</script>

<script type="text/javascript">
//SuckerTree Horizontal Menu (Sept 14th, 06)
//By Dynamic Drive: http://www.dynamicdrive.com/style/
var menuids=["treemenu1"] //Enter id(s) of SuckerTree UL menus, separated by commas
function buildsubmenus_horizontal()
{
  for (var i=0; i<menuids.length; i++)
  {
    var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++)
    {
  		if(ultags[t].parentNode.parentNode.id==menuids[i])
  		{ //if this is a first level submenu
  			ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px" //dynamically position first level submenus to be height of main menu item
  			ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
		  }
		  else
		  { //else if this is a sub level menu (ul)
  		  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
      	ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
		  }
      ultags[t].parentNode.onmouseover=function()
      {
        this.getElementsByTagName("ul")[0].style.visibility="visible"
      }
      ultags[t].parentNode.onmouseout=function()
      {
        this.getElementsByTagName("ul")[0].style.visibility="hidden"
      }
    }
  }
}
if (window.addEventListener)
window.addEventListener("load", buildsubmenus_horizontal, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus_horizontal)
</script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
    <td class="content">
    <?php if (strlen($_smarty_tpl->tpl_vars['s_activId']->value)>0){?>
      <a href="logout.php" class="link">Logout</a> |
      <b>User Name : <?php echo $_smarty_tpl->tpl_vars['s_activId']->value;?>
</b>
    <?php }else{ ?>
      <a href="checkLogin.php" class="link">Login</a>
    <?php }?>
    </td>
  </tr>
  <?php if (strlen($_smarty_tpl->tpl_vars['s_activId']->value)>0){?>
  <tr align="center">
    <td class="bluebg1">
      <div class="suckertreemenu">
      <br />
        <ul id="treemenu1">
	          <li><a href="backup.php" style="width:15px;" class="link">&#2384;</a></li>
	          <li><a href="#" class="link" style="width:100px;">Master</a>
	            <ul>
	              <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['menu'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['name'] = 'menu';
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['selUsermenuArr']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total']);
?>
	              <?php if ($_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuId']<=8){?>
	                <li><a href="<?php echo $_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuName'];?>
.php" class="link" align="left"><?php echo $_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuDisplay'];?>
</a></li>
	              <?php }?>
	              <?php endfor; endif; ?>
	            </ul>
	          </li>
	        <li><a href="#" class="link">Processing</a>
            <ul> 
              <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['menu'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['name'] = 'menu';
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['selUsermenuArr']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total']);
?>
	              <?php if ($_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuId']>=9&&$_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuId']<=12){?>
	                <li><a href="<?php echo $_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuName'];?>
.php" class="link" align="left"><?php echo $_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuDisplay'];?>
</a></li>
	              <?php }?>
	            <?php endfor; endif; ?>
            </ul>	        
	        </li>
	        <li><a href="#" class="link">Main</a>
	            <ul> 
	              <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['menu'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['name'] = 'menu';
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['selUsermenuArr']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total']);
?>
	                <?php if ($_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuId']>=13&&$_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuId']<=15){?>
	                  <li><a href="<?php echo $_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuName'];?>
.php" class="link" align="left"><?php echo $_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuDisplay'];?>
</a></li>
	                <?php }?>
	              <?php endfor; endif; ?>
	            </ul>
	          </li>
	          <li><a href="#" class="link">BILL</a>
	            <ul> 
	              <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['menu'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['name'] = 'menu';
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['selUsermenuArr']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total']);
?>
	                <?php if ($_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuId']>=16&&$_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuId']<=17){?>
	                  <li><a href="<?php echo $_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuName'];?>
.php" class="link" align="left"><?php echo $_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuDisplay'];?>
</a></li>
	                <?php }?>
	              <?php endfor; endif; ?>
	            </ul>
	          </li>
	          <li><a href="#" class="link">Reports</a>
	            <ul> 
	              <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['menu'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['name'] = 'menu';
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['selUsermenuArr']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['menu']['total']);
?>
	                <?php if ($_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuId']>=18&&$_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuId']<=20){?>
	                  <li><a href="<?php echo $_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuName'];?>
.php" class="link" align="left"><?php echo $_smarty_tpl->tpl_vars['selUsermenuArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['menu']['index']]['menuDisplay'];?>
</a></li>
	                <?php }?>
	              <?php endfor; endif; ?>
	            </ul>
	          </li>
            </ul>
          </li>
        </ul>
      <br /><br /><br />
      </div>
    </td>
  </tr>
  <?php }?>
  <tr>
  <td class="content">
   
<form name="form1" id="form1" action="<?php echo $_SERVER['PHP_SELF'];?>
" method="post" onsubmit="return confirm('DO You Want To Submit !!!!!')";>
<input type="hidden" name="incomingId" size="5">
<table border="0" align="center" width="100%">
<tr>
	<td width="80%" valign="top">
  <table border="0" align="left" width="100%">
  <tr>
    <td colspan="6" align="right" ><font size="3"><b>Planing List</b></font></td>
  </tr>
  <tr><td>&nbsp;</td></tr>
  <tr>
    <td colspan="5"  align="right" class="table1"><font size="3"><b>Party</b></font></td>
    <td colspan="10" class="table1">                                                               
    <select name="partyId" id="partyId" onchange="this.form.submit();" >
    <option value="" >All</option>
    <?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['catTitleArray']->value['partyId'],'output'=>$_smarty_tpl->tpl_vars['catTitleArray']->value['partyName'],'selected'=>$_smarty_tpl->tpl_vars['partyId']->value),$_smarty_tpl);?>

    </select>
    </td>
  </tr>
  <tr align="center" class="table1">
    <td>Temperature1</td>
    <td>Soaking1</td>
    <td>Furnace1</td>
    <td>Temperature2</td>
    <td>Soaking2</td>
    <td>Furnace2</td>
    <td>Temperature3</td>
    <td>Soaking3</td>
    <td>Furnace3</td>
    <td>Quantity</td>
    <td>Weight</td>
  </tr>
  <tr align="center" class="table2">
  	<span class="pIncomingId"></span>
  	<span class="pPartyId"></span>
  	<span class="process1Id"></span>
  	<span class="process2Id"></span>
  	<span class="process3Id"></span>
    <td>&nbsp;<span class="temp1"></span></td>
    <td><span class="soaking1"></span></td>
    <td>
    	<span class="furnace1" style="display:none;">
    	<select name="furnace1" AUTOFOCUS id="furnace1">
				<option value="">Select</option>
				<?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['furnaceArray']->value['fId'],'output'=>$_smarty_tpl->tpl_vars['furnaceArray']->value['furnaceName']),$_smarty_tpl);?>

		  </select>
    	</span>
    </td>
    <td><span class="temp2"></span></td>
    <td><span class="soaking2"></span></td>
    <td>
    	<span class="furnace2" style="display:none;">
    	<select name="furnace2" id="furnace2">
				<option value="">Select</option>
				<?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['furnaceArray']->value['fId'],'output'=>$_smarty_tpl->tpl_vars['furnaceArray']->value['furnaceName']),$_smarty_tpl);?>

		  </select>
    	</span>
    </td>

    <td><span class="temp3"></span></td>
    <td><span class="soaking3"></span></td>
    <td>
    	<span class="furnace3" style="display:none;">
    	<select name="furnace3" id="furnace3">
				<option value="">Select</option>
				<?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['furnaceArray']->value['fId'],'output'=>$_smarty_tpl->tpl_vars['furnaceArray']->value['furnaceName']),$_smarty_tpl);?>

		  </select>
    	</span>
    </td>

    <td><span class="quantity"></span></td>
    <td><span class="weight"></span></td>
  </tr>
  <tr><td class="table1" colspan="11" align="center"><input type="submit" name="submitbtn" value=" Submit "></td></tr>
  <tr>
    <td class="table1" align='center' ><B>Select</B></td>
    <td class="table1" align='center' ><B>Party</B></td>
    <td class="table1" align='center' ><B>Date</B></td>
    <td class="table1" align='center' ><B>Challan</B></td>
    <td class="table1" align='center' ><B>Quantity</B></td>
    <td class="table1" align='center' ><B>Weight</B></td>
    <td class="table1" align='center' ><B>Material</B></td>
    <td class="table1" align='center' ><B>Hardne</B></td>
    <td class="table1" align='center' ><B>Process1</B></td>
    <td class="table1" align='center' ><B>Process2</B></td>
    <td class="table1" align='center' ><B>Process3</B></td>
  </tr>
   <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['name'] = "sec";
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['incomingRegister']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total']);
?>
  <tr>
    <td class="table2" align='center'><input type="radio"  name="planningId" value="<?php echo $_smarty_tpl->tpl_vars['incomingRegister']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['planningId'];?>
" onclick="getProcessData(<?php echo $_smarty_tpl->tpl_vars['incomingRegister']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['planningId'];?>
);" /></td>
    <td class="table2" align="left" NOWRAP><?php echo $_smarty_tpl->tpl_vars['incomingRegister']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyName'];?>
</td>
    <td class="table2" align="left" NOWRAP><?php echo $_smarty_tpl->tpl_vars['incomingRegister']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['IncomingDate'];?>
</td>
    <td class="table2" align="center"><?php echo $_smarty_tpl->tpl_vars['incomingRegister']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['challan'];?>
</td>
    <td class="table2" align="center"><?php echo $_smarty_tpl->tpl_vars['incomingRegister']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['qty'];?>
</td>
    <td class="table2" align="center"><?php echo $_smarty_tpl->tpl_vars['incomingRegister']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['weight'];?>
</td>
    <td class="table2" align="center" NOWRAP><?php echo $_smarty_tpl->tpl_vars['incomingRegister']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['material'];?>
</td>
    <td class="table2" align="center" NOWRAP><?php echo $_smarty_tpl->tpl_vars['incomingRegister']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['hardne'];?>
</td>
    <td class="table2" align="left" NOWRAP><?php echo $_smarty_tpl->tpl_vars['incomingRegister']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['processName1'];?>
</td>
    <td class="table2" align="left" NOWRAP><?php echo $_smarty_tpl->tpl_vars['incomingRegister']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['processName2'];?>
</td>
    <td class="table2" align="left" NOWRAP><?php echo $_smarty_tpl->tpl_vars['incomingRegister']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['processName3'];?>
</td>
  </tr>
  <?php endfor; else: ?>
  <tr>
    <td colspan="11" align="center">
      <?php echo $_smarty_tpl->tpl_vars['msg']->value;?>

    </td>
  </tr> 
  <?php endif; ?>
  </table>
  </td>
  <td valign="top">
  	<span id="notOkSpan"></span>
  </td>
</tr>
</table>

  </td>
  </tr>
  <tr>
    <td class="bluebg1">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="images/corner3.gif" width="6" height="7" /></td>
        <td></td>
        <td align="right"><img src="images/corner4.gif" width="6" height="7" /></td>
      </tr>
    </table>
    </td>
  </tr>
</table>
</body>
</html><?php }} ?>